Response
└─Redirect
public class Redirect
extends Response
Constructor Summary | |
---|---|
void | __construct(str data, int code, array header, array options) 架构函数 |
Method Summary | |
---|---|
protected mixed | output(mixed data) 处理数据 |
$this | with(string|array name, mixed value) 重定向传值(通过Session) |
string | 获取跳转地址 |
void | params(mixed params) |
void | remember() 记住当前url后跳转 |
void | restore() 跳转到上次记住的url |
Methods inherited from think\Response | |
---|---|
__construct, cacheControl, code, content, contentType, create, data, eTag, expires, getCode, getContent, getData, getHeader, header, lastModified, options, output, send |
public void __construct(str data, int code, array header, array options)
架构函数
protected mixed output(mixed data)
处理数据
public $this with(string|array name, mixed value)
重定向传值(通过Session)
public string getTargetUrl()
获取跳转地址
public void params(mixed params)
public void remember()
记住当前url后跳转
public void restore()
跳转到上次记住的url